{% extends 'management.html' %}
{% load i18n %}
	


{% block content %}
  <script type="text/javascript">
		function check()
		{
			{% ifequal config.currentHome config.privateHome %}
			if(document.configure.privatepwd.value!=document.configure.privatepwd1.value)
			{
				alert('{% trans "Passwords are different!" %}')
				return false;
			}
			{% else %}
			if(document.configure.postpassword.value!=document.configure.postpassword1.value)
			{
				alert('{% trans "Passwords are different!" %}')
				return false;
			}
			{% endifequal %}
			
			document.configure.submit()
		}
  </script>
  
	<div id="detail"
		<form action='/admin/config/' method='post' name='configure'>
			{% ifequal config.currentHome config.privateHome %}
				<p>{% trans "Verification Code" %}:<input name="privatepwd" type='password' size="50"/></p>
				<p>{% trans "Verification Code" %}:<input name="privatepwd1" type='password' size="50"/></p>
			{% else %}
				<p>{% trans "User Name" %}:<input name="username" type='text' size="50" value="{{config.getUserName}}"/></p>
				<p>{% trans "Password" %}:<input name="postpassword" type='password' size="50"/></p>
				<p>{% trans "Password" %}:<input name="postpassword1" type='password' size="50"/></p>
				<p>{% trans "Links" %}:</p>
				<p>
							<textarea name="links" rows="27" cols="55" >{{links}}</textarea>
				</p>
			{% endifequal %}
				<p class="subbutton">
					<input type='button' value='{% trans "OK" %}' onclick='check()'/>
					<input type='reset' value='{% trans "Cancel" %}' /> 
				</p>
		</form>
	</div>
{% endblock content %}
